#ifndef MAINUSERVIEW_H
#define MAINUSERVIEW_H

#include <QObject>
#include "model/usermodel.h"
#include "model/database.h"
#include "controller/usercontroller.h"
#include "mainview.h"
#include "wellcomeview.h"
#include "optionsview.h"
#include "emptyframe.h"
#include "changepass.h"
#include "createview.h"


class MainUserView : public QObject
{
Q_OBJECT
public:
    MainUserView(QObject *parent = 0);
    ~MainUserView();    
    void wellcome();
    void options();
    void frameInitial();

signals:

public slots:
    void login(QString registration, QString password);
    void changePassWord();
    void createUser();
    void slotChangePass(QString registration, QString oldPassword, QString newPassword);
    void slotCreatUser(QString name, QString type, QString description,
                       QString registration, QString password);

private:
    UserModel *systemUser;
    MainView *mainView;
    WellcomeView *wellcomeFrame;
    UserController *controller;
    OptionsView *userOptions;
    EmptyFrame *emptyFrame;
    ChangePass *changePass;
    CreateView *createView;
};

#endif // MAINUSERVIEW_H
